<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>编辑</title>
<meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
    <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
    <link rel="stylesheet" href="../../res/css/wholesale/font.css">
  	<link rel="stylesheet" href="../../res/css/wholesale/xadmin.css">
  	<link rel="stylesheet" href="../../res/layui/css/layui.css">
  	<script type="text/javascript" src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
 	<script type="text/javascript" src="../../res/layui/layui.js" charset="utf-8"></script>
  	<script type="text/javascript" src="../../res/js/wholesale/xadmin.js"></script>
</head>
<body>
	<form id="form" class="layui-form" action="../../listenRawstockRecord/addOrUpdate.action" method="post" style="margin-top: 10px;">
		<input name="id" id='id' type="hidden">
		
		<div class="layui-form-item" style="width:72%;">
	    <label class="layui-form-label">原材料名称</label>
		<div class="layui-input-block">
		      <input name="rrName" id='rrName' lay-verify="title" autocomplete="off" placeholder="请输入原材料名称" class="layui-input" type="text">
		    </div>
	  	</div>
	  	
	  	<div class="layui-form-item" style="width:72%;">
	    <label class="layui-form-label">出入库数量</label>
		<div class="layui-input-block">
		      <input name="rrNumber" id='rrNumber' lay-verify="title" autocomplete="off" placeholder="请输入出入库数量" class="layui-input" type="text">
		    </div>
	  	</div>
	  	
	  	<div class="layui-form-item" style="width:72%;">
              <label class="layui-form-label">描述</label>
              <div class="layui-input-block">
                  <textarea placeholder="请输入内容" id="rrExplain" name="rrExplain" class="layui-textarea"></textarea>
              </div>
          </div>
	 <br/>
	  <div class="layui-form-item" style="width:70%;">
	    <div class="layui-input-block">
	      <button class="layui-btn" lay-submit lay-filter="formDemo" id="sub">立即提交</button>
	    </div>
	   </div>
	</form>
<script>
layui.use(['form', 'layedit', 'laydate'], function(){
  var form = layui.form
  ,laydate = layui.laydate
  ,layer = layui.layer
  ,layedit = layui.layedit;
  
  
  //创建一个编辑器
  var editIndex = layedit.build('LAY_demo_editor');

  //监听提交
  form.on('submit(formDemo)', function(data){
	  var index=parent.layer.getFrameIndex(window.name);
	  parent.layer.close(index);
  });
 
 
  
});

function load(){
	var form = layui.form;
	form.render();
}
</script>
</body>
</html>